//package demo.spring.cloud.task;
//
//import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.boot.SpringApplication;
//import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.task.configuration.EnableTask;
//import org.springframework.context.annotation.Bean;
//
///**
// * Created by lushun.chen on 2017/4/4.
// *
// * @author lushun.chen
// */
//@SpringBootApplication
//@EnableTask
//@EnableBatchProcessing
//public class SampleTask {
//
//    @Bean
//    public CommandLineRunner commandLineRunner() {
//        return new HelloWorldCommandLineRunner();
//    }
//
//    public static void main(String[] args) {
//        SpringApplication.run(SampleTask.class, args);
//    }
//
//    public static class HelloWorldCommandLineRunner implements CommandLineRunner {
//
//        @Override
//        public void run(String... strings) throws Exception {
//            System.out.println("Hello World!");
//        }
//    }
//}
